package util;

import javacc.Token;

@SuppressWarnings("serial")
public class SemanticException extends Exception {
	Token _tk;
	public SemanticException(String msg){
		super(msg);
	}

	public SemanticException(String msg, Token tk) {
		super("line:"+U.toString(tk.beginLine)+"column:"+
				U.toString(tk.beginColumn)+msg);
		_tk = tk;
	}
}
